import { getData, postData } from "./http";
// 首页
export const Retcate = () => getData("/api/getcate");
export const Retbanner = () => getData("/api/getbanner");
export const Retseckill = () => getData("/api/getseckill");
export const Retgoods = () => getData("/api/gethortgoods");
// 分类
export const Retcates = () => getData("/api/getcates");
// 列表
export const Retgoodlist = (params) => getData("/api/getgoodlist", params);
// 活动消息推送
export const Retpush = () => getData("api/push");
// 商品详情
export const Retgoodsinfo = (params) => getData("/api/getgoodsinfo", params);
// 登录
export const Retlogin = (params) => postData("/api/login", params);
// 注册
export const Retister = (params) => postData("/api/register", params);
export const Retsmslogin = (params) => postData("/api/smslogin", params);
export const Retsms = (params) => getData("/api/sms", params);
// 购物车
export const reqAddCart = params => postData('/api/cartadd', params)
export const reqdel = params => postData('/api/cartdelete', params)
export const reqCartList = params => getData('/api/cartlist', params)
// 地址添加
export const reqGetAddresslist = params => getData('/api/addresslist', params)
export const reqAddressadd = params => postData('/api/addressadd', params)
